<?php
require_once "Rockux_Controller_Action_Helper_LayoutLoader.php";
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initAppAutoload() {
        $autoloader = new Zend_Application_Module_Autoloader(array(
            'namespace' => 'App',
            'basePath'  => dirname(__FILE__),
        ));
        return $autoloader;
    }

  /*  protected function _initDatabase() {
        $options = $this->getApplication()->getOptions();
        $db = Zend_Db::factory( $options[ 'db' ][ 'adapter' ], $options[ 'db' ][ 'params' ] );
        Zend_Db_Table_Abstract::setDefaultAdapter( $db );
        Zend_Registry::set( 'DB', $db );
        return $db;
    }*/

    protected function _initLayoutHelper()
    {
        $this->bootstrap(frontController);
        Zend_Controller_Action_HelperBroker::addHelper( new Rockux_Controller_Action_Helper_LayoutLoader());
    }

}